"""
A、B、C、D分别为0——9之间的整数，求出满足AB+CD=DA条件的数。
例如：90+09=99
"""
for A in range(9):
    for B in range(9):
        for C in range(9):
            for D in range(9):
                if (A * 10 + B) + (C * 10 + D) == D * 10 + A:
                    print(f'{A}{B}+{C}{D} = {D}{A}')
